
public class Neuron {

    public int numberOfInputs;
    public double deltaError;
    public double weightArray[];
    public double output;
    public double outputDerived;

    public Neuron(int numberOfInputs) {
        weightArray = new double[numberOfInputs];

        for (int i = 0; i < numberOfInputs; i++) {
            weightArray[i] = -0.5 + Math.random(); // random entre -0,5 y 0.5
        }
    }
}
